home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / include / incl98.zoo / grp.h < prev    next >
C/C++ Source or Header  |  1993-07-10  |  886b  |  42 lines

  1. #ifndef _GRP_H
  2. #define _GRP_H
  3.  
  4. #ifndef _COMPILER_H
  5. #include <compiler.h>
  6. #endif
  7.  
  8. #ifndef _POSIX_SOURCE
  9. #ifndef _STDIO_H
  10. #include <stdio.h>
  11. #endif
  12. #endif /* _POSIX_SOURCE */
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17.  
  18. struct group
  19. {
  20.   char *gr_name;    /* The name of the group        */
  21.   _GID_T gr_gid;    /* The numerical group ID       */
  22.   char **gr_mem;    /* array of member names        */
  23.   char *__gr_passwd;/* The encrypted group password */
  24. };
  25.  
  26. #ifndef _POSIX_SOURCE
  27. #define gr_passwd __gr_passwd
  28. __EXTERN void   setgrent __PROTO((void));
  29. __EXTERN void   endgrent __PROTO((void));
  30. __EXTERN struct group * getgrent __PROTO((void));
  31. __EXTERN struct group * fgetgrent __PROTO((FILE *f));
  32. #endif /* _POSIX_SOURCE */
  33.  
  34. __EXTERN struct group * getgrgid __PROTO((int gid));
  35. __EXTERN struct group * getgrnam __PROTO((const char *name));
  36.  
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40.  
  41. #endif /* _GRP_H */
  42.